projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c9d2a7
)
* xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
author
Jan D
<jan.h.d@swipnet.se>
Fri, 16 Apr 2010 17:05:31 +0000
(19:05 +0200)
committer
Jan D
<jan.h.d@swipnet.se>
Fri, 16 Apr 2010 17:05:31 +0000
(19:05 +0200)
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index c8067a47deb99e475e32b96e43bd61a980274735..796dd3093e8ba68e029c396afa74f4c498bf80bb 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-978,14
+978,9
@@
apply_systemfont_to_menu (w)
if (XtIsShell (w)) /* popup menu */
{
Widget *childs = NULL;
- int num = 0;
- XtVaGetValues (w, XtNnumChildren, &num, NULL);
- if (num != 1) return; /* Should only be one. */
-
- childs[0] = 0;
XtVaGetValues (w, XtNchildren, &childs, NULL);
- if (
childs &&
*childs) w = *childs;
+ if (*childs) w = *childs;
}
/* Only use system font if the default is used for the menu. */